function test_tflite_model()
    % 加载TFLite模型
    tflite_path = 'model_quantized_cifar10.tflite';
    
    try
        % 导入TFLite模型
        net = importNetwork(tflite_path, 'ImportWeights', true);
        
        % 显示网络结构
        fprintf('=== Model Architecture ===\n');
        analyzeNetwork(net);
        
        % 创建测试输入
        input = int8(randi([-128, 127], [32, 32, 3]));
        
        % 运行推理
        output = predict(net, input);
        
        % 显示结果
        fprintf('\n=== Inference Results ===\n');
        fprintf('Input shape: %s\n', mat2str(size(input)));
        fprintf('Output shape: %s\n', mat2str(size(output)));
        fprintf('Output range: [%f, %f]\n', min(output(:)), max(output(:)));
        
    catch ME
        fprintf('Error: %s\n', ME.message);
        fprintf('Try installing Deep Learning Toolbox Support Package for TensorFlow-Keras Models\n');
    end
end 